const express = require("express");
const router = express.Router();
const {
  getCtr,
  getCtr1,
  putCtr,
  postCtr,
  delCtr, getRecycle, getRecycles, postRecycle, delRecycle, delRecycles,
  postCtr1
} = require("../../../controller/admin/business");

//查询全部数据
router.get("/businessAll", getCtr);

// 模糊查询
router.get("/businessB", getCtr1);

// 开启新增
router.post("/businessB", postCtr);
// 文件导入
router.post("/businessB1", postCtr1);

// 修改信息
router.put("/businessB", putCtr);

// 删除
router.delete("/businessB", delCtr);
//====================回收站=======================
//查询全部数据
router.get("/RecycleAll", getRecycle);
// 模糊查询
router.get("/Recycles", getRecycles);
// 开启新增
router.post("/Recycleadd", postRecycle);
// 删除
router.delete("/Recycledel", delRecycle);
// 恢复
router.delete("/Recycledels", delRecycles);
module.exports = router;
